@import "mixins/mixins";
@import "common/var";
@import "_main";

@include b(cate) {
  @include e(container) {
    background-color: $--color-white;
  }

  @include e(nav) {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;

    @include m(body) {
      height: 40px;
      width: 750rpx;
      white-space: nowrap;
      background: #fff;
      border-top: 1rpx solid #cbcbcb;
      overflow: hidden;

      & .item {
        display: inline-block;
        height: 40px;
        min-width: 75px;
        padding: 0 8px;
        text-align: center;
      }

      & .item .name {
        display: block;
        height: 38px;
        padding: 0 10px;
        line-height: 40px;
        color: #808080;
        font-size: 16px;
        width: auto;
      }

      & .item.active .name {
        color: #ff2445;
        border-bottom: 2px solid #ff2445;
      }
    }

    @include m(midd) {
      height: 50px;
      width: 750rpx;
      white-space: nowrap;
      background: #fff;
      border-top: 1rpx solid #cbcbcb;
      overflow: hidden;

      & .item {
        display: inline-block;
        height: 30px;
        min-width: 75px;
        padding: 10px 8px;
        text-align: center;
      }

      & .item .name {
        display: block;
        height: 30px;
        padding: 0 10px;
        line-height: 30px;
        color: #808080;
        font-size: 14px;
        width: auto;
      }

      & .item.active .name {
        color: #4e4e4e;
        background: #ededed;
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        -ms-border-radius: 20px;
        -o-border-radius: 20px;
      }
    }

    @include m(bottom) {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: space-around;
      height: 30px;
      width: 750rpx;
      background: #fff;
      border-top: 1rpx solid #cbcbcb;
      border-bottom: 1rpx solid #cbcbcb;
      overflow: hidden;


      & .item {
        display: flex;
        height: 30px;
        min-width: 75px;
        padding: 0 8px;
        text-align: center;
        align-items: center;
      }

      & .item .name {
        height: 30px;
        padding: 0 5px;
        line-height: 30px;
        color: #808080;
        font-size: 13px;
        width: auto;
      }

      & .item > image {
        width: 10px;
        height: 10px;
      }

      & .item.active .name {
        color: #ff2445;
      }
    }
  }

  @include e(navlist) {
    background-color: #fff;
    opacity: 1;
    display: flex;
    flex-direction: column;

    & .item {
      height: 40px;
      min-width: 75px;
      line-height: 40px;
      padding: 0 10px;
      font-size: 13px;
      color: #2d2d2d;
    }
  }
  @include e(navmenu) {
    & .mark {
      background-color: #000;
      opacity: 0.3;
    }

    & .item.active .name {
      color: #ff2445;
    }
  }

  @include e(content) {
    position: absolute;
    left: 0;
    top: 125px;
    width: 100%;
  }

  @include e(searchcontent) {
    position: relative;
    width: 100%;
  }

  @include e(content-wrapper) {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  @include e(abnor) {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding-top: 50px;

    & image {
      display: block;
      height: 119px;
      width: 137px;
    }

    & > div {
      margin-top: 16px;
      margin-bottom: 22px;
      font-size: 13px;
      color: #808080;
    }

    & > button {
      height: 37px;
      width: 123px;
      color: #fff;
      background-color: #fd774d;
      border-radius: 3px;
      font-size: 15px;
    }

    & > navigator {
      height: 37px;
      width: 123px;
      color: #fff;
      background-color: #fd774d;
      border-radius: 3px;
      font-size: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  @include e(list) {

  }

  @include e(item) {
    display: flex;
    padding: 15px 35px 15px 10px;

    & > image {
      flex: 0 0 43%;
      width: 282rpx;
      height: 166rpx;
    }

    & .info {
      flex: 0 0 57%;
      max-width: 400rpx;
      margin-left: 10px;
      & .title {
        font-size: 16px;
        color: #292929;
      }

      & .author {
        font-size: 12px;
        color: #939393;
      }

      & .price {
        font-size: 14px;
        color: #ff0036;

        & span {
          font-size: 10px;
        }
      }
    }
  }
}
